<?php

return array(
    'activeForm' => array(
        'id' => 'edit-form',
        'enableAjaxValidation' => true,
        'htmlOptions' => array('enctype' => 'multipart/form-data'),
        'clientOptions' => array('validateOnSubmit' => true, 'validateOnChange' => true),
    ),
    'elements' => array(
        'category_id' => array(
            'type' => 'backend.extensions.NewsCategoryDropDownList',
            'attributes' => array('group' => true, 'level' => 2),
            'htmlOptions' => array('empty' => '请选择'),
        ),
        'author' => array(
            'type' => 'text',
        ),
        'title' => array(
            'type' => 'text',
            'attributes' => array('size' => 40),
        ),
        'source' => array(
            'type' => 'text',
            'attributes' => array('size' => 40),
        ),
        'logo' => array(
            'type' => 'ext.FilefieldWidget',
            'htmlOptions' => array('size' => '40'),
            'thumbOptions' => array('height' => 200, 'width' => 200),
            'enableAjaxValidation' => false,
        ),
        'tags' => array(
            'type' => 'text',
            'attributes' => array('size' => 40),
            'hint' => '半角英文空格隔开多个标签',
        ),
        'content' => array(
            'type' => 'textarea',
            'attributes' => array('cols' => 60, 'rows' => 5, 'style' => ''),
        ),
    ),
    'buttons' => array(
        'btnsubmit' => array(
            'type' => 'submit',
            'label' => '确定',
            'class' => 'btn',
        ),
    ),
);
